package com.lj.mcore.service;

import com.lj.mcore.dao.base.BaseAppDAO;
import com.lj.mcore.entity.Accessory;
import com.lj.mcore.entity.Address;
import com.lj.mcore.entity.GoodsType;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class AddressService implements IAddressService{

    @Resource(name="addressDao")
    private BaseAppDAO<Address> addressDao;

    @Override
    public boolean save(Address obj) {
        return addressDao.save(obj);
    }

    @Override
    public boolean delete(Address obj) {
        return addressDao.delete(obj);
    }

    @Override
    public boolean update(Address obj) {
        return addressDao.update(obj);
    }

    @Override
    public Address getObjById(Long id) {
        return addressDao.findById(id);
    }

    @Override
    public List<Address> query(String hql, Map paramMap, int paramInt1, int paramInt2) {
        return null;
    }
}
